<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>(ĕn-trō'pĭk): <%= controller.action_name.capitalize %></title>
  <%= stylesheet_link_tag 'entropic', :media => :screen %>
  <%= stylesheet_link_tag 'print', :media => :print %>
  <%= javascript_include_tag  :defaults %>
  <link rel="shortcut icon" href="/favicon.ico" type="image/ico" />
</head>

<body id="<%= controller.controller_name %>">
  <table border=0 width="100%" cellpadding=0 cellspacing=0>
  <tr><td>
  <div id="banner">
      <%= @page_title || controller.controller_name.capitalize %></div>
  </div>
  
  <div id="columns">
    <!-- COLUMN ONE -->
    <div id="boxes">
      <div id="menu">
        <%= link_to "home", :controller => "home", :action => "index" %><br>
        <%= link_to "events", :controller => "events", :action => "index" %><br>
        <%= link_to "traces", :controller => "traces", :action => "index" %><br>
        <%= link_to "tasks", :controller => "tasks", :action => "index" %><br>
        <%= link_to "reports", :controller => "reports", :action => "index" %><br>
        <div id="loaderArea"><%= image_tag("loader.gif",:align => "absmiddle",:border => 0,:id => "loader",:style =>"display: none;") %></div>
        <div id="flashNotice"><% if flash[:notice] %><%= flash[:notice] %><% end %></div>
      </div>
      <div id="toDoBox">
        <%= render :partial => 'shared/taskList' %>
      </div>        
    </div>
    
    <!-- COLUMN TWO -->
    <div id="main">      
      <%= yield %>
    </div>
    
    <!-- COLUMN THREE -->
    <div id="boxes">
      <% @eventList = Event.getLatestEvents %>
      
      <div id="eventsBox">
        <%= render :partial => 'shared/eventList', :locals => {:eventList => @eventList} %>
      </div>
      
      <div id="statsBox">
        <%= render :partial => 'shared/stats' %>
      </div>
      
    </div>
  </div>
  </td></tr>
  <tr><td valign="bottom">
    <div id="footer">
    <center><hr><a href="http://code.google.com/p/entropic/" target="_new">entropic</a> (v<%= AppConfig.app_version %>)</center>
    </div>
  </td></tr>
  </table>
</body>
</html>

